package utils;


import com.google.inject.Guice;
import com.google.inject.Injector;
import com.google.inject.Singleton;

@Singleton
public abstract class ClassRegistry
{
	private static Injector injector;

	public static synchronized void initialize()
	{
		injector = Guice.createInjector();	
	}

	public static <T> T getInstance(Class<T> classObj)
	{
		return injector.getInstance(classObj);
	}
}

